//
//  NetworkManager.h
//  mhomeapp
//
//  Created by 刘春雷 on 16/8/25.
//  Copyright © 2016年 刘春雷. All rights reserved.
//

#import "AFHTTPSessionManager.h"

typedef void (^successBlock)(id responseObject);
typedef void (^failureBlock)(NSError *error);

@interface NetworkManager : AFHTTPSessionManager

- (void)sendGetRequestWithUrl:(NSString *)urlStr paramenters:(NSDictionary *)paramDic success:(successBlock)success failure:(failureBlock)failure;

- (void)sendPostRequestWithUrl:(NSString *)urlStr paramenters:(NSDictionary *)paramDic success:(successBlock)success failure:(failureBlock)failure;

- (void)sendPutRequestWithUrl:(NSString *)urlStr paramenters:(NSDictionary *)paramDic success:(successBlock)success failure:(failureBlock)failure;

- (void)sendDeleteRequestWithUrl:(NSString *)urlStr paramenters:(NSDictionary *)paramDic success:(successBlock)success failure:(failureBlock)failure;

@end
